package de.fanuffel.generic.functions;

/*
 * Created on 12.05.2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author Karl
 * 
 *         TODO To change the template for this generated type comment go to
 *         Window - Preferences - Java - Code Style - Code Templates
 */
final public class Complement<Cod> extends Predicate<Cod> {
  private final Predicate<Cod> p;

  public Complement(Predicate<Cod> p) {
    this.p = p;
  }

  public Boolean eval(Cod argument) {
    return !p.eval(argument);
  }
}
